package com.foodchain.entity;


import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: yuanZ;
 * @Date: 2018/10/12 20:08;
 * @Description: Banner首页轮播;
**/
@Entity
@Getter
@Setter
public class Banner implements Serializable {

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    private String id;

    @Column(name = "url", length = 128)
    private String url;

    @Column(name = "is_user")
    private Boolean isUser;

    @Column(name = "sequence", length = 10)
    private String sequence;

    @Column(name = "link", length = 128)
    private String link;

    @Column(name = "create_time")
    private Date createTime;

}
